package com.sanqi.work.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sanqi.work.mapper.WxTmpAccuWorkMapper;
import com.sanqi.work.domain.WxTmpAccuWork;
import com.sanqi.work.service.IWxTmpAccuWorkService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 个人累计工作Service业务层处理
 * 
 * @author duany
 * @date 2025-10-14
 */
@Service
public class WxTmpAccuWorkServiceImpl extends ServiceImpl<WxTmpAccuWorkMapper, WxTmpAccuWork> implements IWxTmpAccuWorkService 
{
    @Autowired
    private WxTmpAccuWorkMapper wxTmpAccuWorkMapper;

    /**
     * 查询个人累计工作
     * 
     * @param id 个人累计工作主键
     * @return 个人累计工作
     */
    @Override
    public WxTmpAccuWork selectWxTmpAccuWorkById(String id)
    {
        return wxTmpAccuWorkMapper.selectWxTmpAccuWorkById(id);
    }

    /**
     * 查询个人累计工作列表
     * 
     * @param wxTmpAccuWork 个人累计工作
     * @return 个人累计工作
     */
    @Override
    public List<WxTmpAccuWork> selectWxTmpAccuWorkList(WxTmpAccuWork wxTmpAccuWork)
    {
        return wxTmpAccuWorkMapper.selectWxTmpAccuWorkList(wxTmpAccuWork);
    }

    /**
     * 新增个人累计工作
     * 
     * @param wxTmpAccuWork 个人累计工作
     * @return 结果
     */
    @Override
    public int insertWxTmpAccuWork(WxTmpAccuWork wxTmpAccuWork)
    {
        return save(wxTmpAccuWork) ? 1 : 0;
    }

    /**
     * 修改个人累计工作
     * 
     * @param wxTmpAccuWork 个人累计工作
     * @return 结果
     */
    @Override
    public int updateWxTmpAccuWork(WxTmpAccuWork wxTmpAccuWork)
    {
        return updateById(wxTmpAccuWork) ? 1 : 0;
    }

    /**
     * 批量删除个人累计工作
     * 
     * @param ids 需要删除的个人累计工作主键
     * @return 结果
     */
    @Override
    public int deleteWxTmpAccuWorkByIds(String[] ids)
    {
        return wxTmpAccuWorkMapper.deleteWxTmpAccuWorkByIds(ids);
    }

    /**
     * 删除个人累计工作信息
     * 
     * @param id 个人累计工作主键
     * @return 结果
     */
    @Override
    public int deleteWxTmpAccuWorkById(String id)
    {
        return wxTmpAccuWorkMapper.deleteWxTmpAccuWorkById(id);
    }
}
